package _96JieShiQi.impl;

import _96JieShiQi.Expression;

/**
 * @TerminalExpression: 表达式接口 实现类
 * @author: ZBoHang
 * @time: 2021/9/17 13:48
 */
public class TerminalExpression implements Expression {
    private String data;

    public TerminalExpression(String data) {
        this.data = data;
    }

    @Override
    public boolean interpret(String context) {
        return context.contains(data);
    }
}
